@echo off
setlocal

"EventLogInstallApp.exe" FimDataProcessingExtension

set DPE=..\bin\debug
set RS=C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services

xcopy "%DPE%\FimDataProcessingExtension.dll" "%RS%\ReportServer\bin" /i /r /y /k /c /f
xcopy "%DPE%\Microsoft.IdentityModel.dll" "%RS%\ReportServer\bin" /i /r /y /k /c /f
xcopy "%DPE%\Microsoft.ResourceManagement.dll" "%RS%\ReportServer\bin" /i /r /y /k /c /f
xcopy "%DPE%\Microsoft.ResourceManagement.Client.dll" "%RS%\ReportServer\bin" /i /r /y /k /c /f
xcopy "%DPE%\Microsoft.ResourceManagement.ObjectModel.dll" "%RS%\ReportServer\bin" /i /r /y /k /c /f
xcopy "%DPE%\Ensynch.FIM.dll" "%RS%\ReportServer\bin" /i /r /y /k /c /f
xcopy "%DPE%\Ensynch.dll" "%RS%\ReportServer\bin" /i /r /y /k /c /f
xcopy "%DPE%\log4net.dll" "%RS%\ReportServer\bin" /i /r /y /k /c /f

xcopy "%DPE%\log4net.config" "%RS%\ReportServer\" /i /r /y /k /c /f

net stop "SQL Server Reporting Services (MSSQLSERVER)"
net start "SQL Server Reporting Services (MSSQLSERVER)"

pause

